package org.tinygroup.bizframe.dao.inter.constant;

import org.tinygroup.bizframe.dao.inter.pojo.TsysOfficeUser;
import org.tinygroup.tinysqldsl.base.Column;
import org.tinygroup.tinysqldsl.base.Table;

/**
 * <!-- begin-user-doc --> 岗位用户关系表 * <!-- end-user-doc -->
 */
public class TsysOfficeUserTable extends Table {

	/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 */
	public static final TsysOfficeUserTable TSYS_OFFICE_USER_TABLE = new TsysOfficeUserTable();

	/**
	 * <!-- begin-user-doc --> ID * <!-- end-user-doc -->
	 */
	public final Column ID = new Column(this, "id");
	/**
	 * <!-- begin-user-doc --> 用户代码 * <!-- end-user-doc -->
	 */
	public final Column USER_ID = new Column(this, "user_id");
	/**
	 * <!-- begin-user-doc --> 岗位编号 * <!-- end-user-doc -->
	 */
	public final Column OFFICE_CODE = new Column(this, "office_code");

	private static java.util.Map<String, String> mappings = new java.util.Hashtable<String, String>();

	public String getFieldName(String attrName) {
		return mappings.get(attrName);
	}

	public TsysOfficeUserTable() {
		super("tsys_office_user");
	}

	public TsysOfficeUserTable(String schemaName) {
		super(schemaName, "tsys_office_user");
	}

	public TsysOfficeUserTable(String schemaName, String alias) {
		super(schemaName, "tsys_office_user", alias);
	}

	public TsysOfficeUserTable(String schemaName, String alias, boolean withAs) {
		super(schemaName, "tsys_office_user", alias, withAs);
	}

	public boolean isAutoGeneratedKeys() {
		return true;
	}

	public Class<TsysOfficeUser> getPojoType() {
		return TsysOfficeUser.class;
	}

	static {
		mappings.put("id", "id");
		mappings.put("userId", "user_id");
		mappings.put("officeCode", "office_code");

	}

}
